<div class="evaluations view">
<h2><?php  echo __('Evaluación'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($evaluation['Evaluation']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Institución'); ?></dt>
		<dd>
			<?php echo $this->Html->link($evaluation['Institution']['nombre'], array('controller' => 'institutions', 'action' => 'view', $evaluation['Institution']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Grupo'); ?></dt>
		<dd>
			<?php echo $this->Html->link($evaluation['Group']['name'], array('controller' => 'groups', 'action' => 'view', $evaluation['Group']['id'])); ?>
			&nbsp;
		</dd>		
		<dt><?php echo __('Avance'); ?></dt>
		<dd>
			<?php echo $this->Html->link($evaluation['Preview']['name'], array('controller' => 'previews', 'action' => 'view', $evaluation['Preview']['id'])); ?>
			&nbsp;
		</dd>

		<dt><?php echo __('Evaluador'); ?></dt>
		<dd>
			<?php echo $this->Html->link($evaluation['User']['nombres'], array('controller' => 'users', 'action' => 'view', $evaluation['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Plantilla'); ?></dt>
		<dd>
			<?php echo $this->Html->link($evaluation['Plantilla']['titulo'], array('controller' => 'plantillas', 'action' => 'view', $evaluation['Plantilla']['id'])); ?>
			&nbsp;
		</dd>
	</dl>

</div>
<div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
		<li><?php echo $this->Form->postLink(__('anular Evaluación'), array('action' => 'delete', $evaluation['Evaluation']['id']), null, __('Esta usted seguro que desea eliminar # %s?', $evaluation['Evaluation']['id'])); ?> </li>
		</div> 	
<div class="related">
	<h3><?php echo __('Criterios de evaluación'); ?></h3>
	<?php if (!empty($plantilla['Criterio'])): ?>
	<table cellpadding = "0" cellspacing = "0" id="tabla">
	<tr>
		<th><?php echo __('Tipo'); ?></th>
		<th><?php echo __('Criterio'); ?></th>
		<th class="actions"><?php echo __('Nota'); ?></th>
	</tr>
	<?php echo $this->Form->create('CriteriosEvaluation',array('controller'=>'criteriosEvaluations','action' => 'add_evaluation')); ?>
		<?php
		$i = 0;
		foreach ($plantilla['Criterio'] as $criterio): ?>
		<tr>
			<td><?php echo $criterio['tipo']; ?></td>
			<td><?php echo $criterio['criterio']; ?></td>
			<td >
<!--				<div class="criteriosEvaluations form"> --> 

					<?php
					echo $this->Form->hidden('CriteriosEvaluation.'.$i.'.evaluation_id',array('label'=>'','value' => $evaluation['Evaluation']['id']));
					echo $this->Form->hidden('CriteriosEvaluation.'.$i.'.criterio_id',array('label'=>'','value' => $criterio['id']));
					echo $this->Form->input('CriteriosEvaluation.'.$i.'.puntaje',array('label'=>'','options' => array(1=>1,3=>3,5=>5,7=>7)));
					++$i;
					?>
						

					
<!--				</div> -->
			</td>
		</tr>
	<?php endforeach; ?>

	</table>

<?php endif; ?>

				<?php echo $this->Form->end(__('Siguiente'),true); ?>
		
</div>
<!--<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
	<?php if($this->Session->read('Auth.User.role_id')=='1'): ?>	
		<li><?php echo $this->Html->link(__('Edit Evaluation'), array('action' => 'edit', $evaluation['Evaluation']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Evaluation'), array('action' => 'delete', $evaluation['Evaluation']['id']), null, __('Estas seguro que deseas eliminar # %s?', $evaluation['Evaluation']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Evaluations'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Evaluation'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Institutions'), array('controller' => 'institutions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Institution'), array('controller' => 'institutions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Projects'), array('controller' => 'projects', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project'), array('controller' => 'projects', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Plantillas'), array('controller' => 'plantillas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Plantilla'), array('controller' => 'plantillas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Criterios'), array('controller' => 'criterios', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Criterio'), array('controller' => 'criterios', 'action' => 'add')); ?> </li>
		<?php endif; ?>		
		<?php if($this->Session->read('Auth.User.role_id')=='6'): ?>	
			<li><?php echo $this->Html->link(__('Grupos para evaluar'), array('controller' => 'evaluations', 'action' => 'index2')); ?> </li>
		<?php endif; ?>
		
	</ul>
</div> -->